-- GENERATED SPELL FOR [Varg] --


function spell0_24517(pUnit, Event) --@Killing Rage,Self--
pUnit:FullCastSpellOnTarget(52071,pUnit)
pUnit:RegisterEvent('Sorts_24517', 6292, 1)
end

function Sorts_24517(pUnit, Event)
local choix_sorts_24517 = math.random(0, 0)
if choix_sorts_24517 == 0 then
pUnit:RegisterEvent('spell0_24517', 1, 1)
end
end

function mob24517_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24517', math.random(1500, 3000), 1)
end

function mob24517_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24517_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24517_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24517, 1, 'mob24517_Action')
RegisterUnitEvent(24517, 2, 'mob24517_Leave')
RegisterUnitEvent(24517, 3, 'mob24517_Kill')
RegisterUnitEvent(24517, 4, 'mob24517_Die')
